﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace gd.IBiz
{
    /// <summary>
    /// 导入接口
    /// </summary>
    public interface IExcelImport
    {
        /// <summary>
        /// 获取Excel导入视图额外用到的数据
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        object GetViewData(object obj);

        /// <summary>
        /// 导入前检测
        /// </summary>
        /// <param name="id">配置ID</param>
        /// <param name="submitData">表单对象</param>
        /// <param name="importData">导入数据</param>
        /// <returns></returns>
        gd.ViewModel.ExcelImport.Result ImportCheck(string id, object submitData, IList<object> importData);

        /// <summary>
        /// 执行导入
        /// </summary>
        /// <param name="id">配置ID</param>
        /// <param name="submitData">表单对象</param>
        /// <param name="importData">导入数据</param>
        /// <returns></returns>
        gd.ViewModel.ExcelImport.Result ImportStart(string id, object submitData, IList<object> importData);

    }
}
